import request from "@/util/http";

// 获取回收站列表
export const getArchives = (params) => {
  return request({
    url: '/admin/archives',
    method: 'get',
    params
  });
};

// 从回收站恢复数据
export const restoreArchive = (id) => {
  return request({
    url: `/admin/archives/${id}/restore`,
    method: 'post'
  });
};

// 从回收站彻底删除数据
export const permanentDeleteArchive = (id) => {
  return request({
    url: `/admin/archives/${id}/permanent`,
    method: 'delete'
  });
};